package 多窗口卖票.实现Runnable接口;

public class MyThread implements Runnable{
    private int ticket=100;
    @Override
    public void run() {
        while (true){
            if (ticket >= 0) {
                System.out.println("卖的票号："+ticket);
                ticket--;
            }else{
                break;
            }
        }
    }
}
